<!--#include file="./doctype.html"-->
<title>管理首页-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<% on error resume next %>
    <ul class="list-group panel-default">
        <li class="list-group-item panel-heading">
            <h3 class="panel-title">空间使用情况</h3>
        </li>
        <%
        dim g_dir, ds, total_all, total_other, total_temp
        total_other = 0
        set g_dir = fso.getFolder(server.mapPath(root))
        total_all = g_dir.size
        set g_dir = nothing
        %>
        <li class="list-group-item fix">
            <strong class="col-xs-3 text-right">
                空间使用总大小
            </strong>
            <div class="col-xs-9 text-danger">
                <%=app.toSize(total_all)%>
            </div>
        </li>
        <%
        call app.mkdir(root & uploadDir & "/")
        set g_dir = fso.getFolder(server.mapPath(root & uploadDir & "/"))
        total_temp = g_dir.size
        set g_dir = nothing
        total_other = total_other + total_temp
        %>
        <li class="list-group-item fix">
            <strong class="col-xs-3 text-right">
                上传文件
            </strong>
            <div class="col-xs-9">
                <%=app.toSize(total_temp)%>(<%=formatNumber(total_temp / total_all * 100, 2)%>%)
            </div>
        </li>
        <%
        set g_dir = fso.GetFile(server.mapPath(root & DataPath))
        total_temp = g_dir.size
        set g_dir = nothing
        total_other = total_other + total_temp
        %>
        <li class="list-group-item fix">
            <strong class="col-xs-3 text-right">
                数据库
            </strong>
            <div class="col-xs-9">
                <%=app.toSize(total_temp)%>(<%=formatNumber(total_temp / total_all * 100, 2)%>%)
            </div>
        </li>
        <%
        set g_dir = fso.getFolder(server.mapPath(root & "view/"))
        total_temp = g_dir.size
        set g_dir = nothing
        total_other = total_other + total_temp
        %>
        <li class="list-group-item fix">
            <strong class="col-xs-3 text-right">
                风格文件
            </strong>
            <div class="col-xs-9">
                <%=app.toSize(total_temp)%>(<%=formatNumber(total_temp / total_all * 100, 2)%>%)
            </div>
        </li>
        <%
        total_other = total_all - total_other
        %>
        <li class="list-group-item fix">
            <strong class="col-xs-3 text-right">
                其他(含程序等)
            </strong>
            <div class="col-xs-9">
                <%=app.toSize(total_other)%>(<%=formatNumber(total_other / total_all * 100, 2)%>%)
            </div>
        </li>
    </ul>
	<ul class="list-group panel-default">
    	<li class="list-group-item panel-heading">
    		<h3 class="panel-title">
    		服务器信息
    		<a class="btn btn-xs btn-default ml15" href="<%=fileName%>?info=1">
                <span class="text-danger">更多...</span>
            </a>
    		</h3>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			服务器时间
    		</strong>
    		<div class="col-xs-9">
    		    <%=now()%>
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			服务器IP地址
    		</strong>
    		<div class="col-xs-9">
    		    <%=request.serverVariables("LOCAL_ADDR")%>
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			IIS版本
    		</strong>
    		<div class="col-xs-9">
    		    <%=Request.ServerVariables("SERVER_SOFTWARE")%>
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			脚本解释引擎
    		</strong>
    		<div class="col-xs-9">
    		    <%=scriptEngine%>/<%=scriptEngineMajorVersion%>.<%=scriptEngineMinorVersion%>.<%=scriptEngineBuildVersion%>
                <% if csng(scriptEngineMajorVersion & "." & scriptEngineMinorVersion) < 5.6 then %>
                <a class="btn btn-xs btn-default ml10" href="http://www.microsoft.com/downloads/release.asp?ReleaseID=33136" target="_blank">
                    <span class="text-danger">版本过低，请点此更新</span>
                </a>
                <% End if %>
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			站点物理路径
    		</strong>
    		<div class="col-xs-9">
    		    <%=server.mapPath(root)%>
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			压缩数据库组件
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("JRO.JetEngine")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			FSO文本读写
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("scripting.FileSystemObject")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			数据流读写、无组件上传
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("adodb.Stream")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			XmlHttp远程采集组件
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("Microsoft.XmlHttp")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			XmlDom组件支持
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("Microsoft.XmlDom")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			Xml组件支持
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("Msxml2.XmlHttp")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			AspJpeg图片处理组件
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("Persits.Jpeg")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			Jmail邮件收发组件
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("JMail.SmtpMail")%>">
    		</div>
    	</li>
    	<li class="list-group-item fix">
    		<strong class="col-xs-3 text-right">
    			Cdonts邮件处理组件
    		</strong>
    		<div class="col-xs-9 setBool" data-value="<%=app.checkObject("Cdonts.NewMail")%>">
    		</div>
    	</li>
    </ul>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function(){
    $('.setBool').setBool(1);
});
</script>
</body>
</html>